

const cloud = require('wx-server-sdk');
cloud.init()
const db = cloud.database({ env: 'tpcwre1' })

exports.main = (event, context) => {
  let { roomName, roomPwd, userCount, total, cheder, cname } = event

  var t = db.collection('microTools_fillPit')

  //return t.skip(2).limit(2).get()
  return t.field({
    _id:true,
    roomPwd:true,
    roomName:true
  }).limit(100).orderBy("ctime","desc").get()

}


